import logging
from data.iotype import IO_Type


# 以下内容用于动态改写 gui.vacwx.UI_Mapping 值
import json
import frw.vacwx
# from src.vacwx import UI_Mapping  # this way will fail to change the global varible
with open("gui/conf/uimap.json") as fp:
    frw.vacwx.UI_Mapping = json.load(fp)


# 载入PLC.ui文件数据
from data.plc_ui import load_PLC_ui
import gui.wx.pagevac_uiconf
gui.wx.pagevac_uiconf.LIST_PLC_UI_DATA = load_PLC_ui("data/test/PLC.ui")